home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 689 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: kcoleman@cybercom.net (Kenneth Coleman)
  3. Newsgroups: comp.std.c++
  4. Subject: STL vector copy ctor/assigment & reserve()
  5. Date: 12 Mar 1996 20:15:53 PST
  6. Organization: Cyber Access Internet Services (617) 396-0491
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4i0ilf$geh@orion.cybercom.net>
  9. NNTP-Posting-Host: isolde.mti.sgi.com
  10. X-Original-Date: Mon, 11 Mar 1996 06:55:51 GMT
  11. X-Newsreader: Forte Free Agent 1.0.82
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBVAwUBMUZMN0y4NqrwXLNJAQGp7QIAo70qOOfYc1KJjmvSDu6Gg0xaraPSGJbG
  14.     ARs3DLwPFXdbWJFrYjWFV/kBOk/Tv5j6ADPZl6C4m9avzMlP3Oxsew==
  15.     =A7Al
  16. Originator: austern@isolde.mti.sgi.com
  17.  
  18. I don't know if this is on purpose or not, but neither the copy
  19. constructor nor the assignment operator appears to take into account
  20. the fact that the function reserve() may have been called on the copy
  21. source.  It basically makes the size of the vector into the number of
  22. elements in the range [start, finish).
  23.  
  24. Is this on purpose, or is it a bug?  I can't find any mention of this
  25. particular "feature" in the documentation I have, or in the working
  26. paper.
  27.  
  28. Thanks for any help you can give me!
  29.  
  30. - Ken.
  31. kcoleman@cybercom.net
  32. ---
  33. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  34.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  35.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  36.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  37.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  38. ]
  39.